<?php

namespace App\Service\ObjectStorage;

interface ObjectStorageInterface {
    /**
     * 初始化
     * @return mixed
     */
    public function init ();

    /**
     * 从from表单上传文件
     * @param $file
     * @param $file_path
     * @param string[] $allow_type
     * @param int $max_size 默认上传大小为1M
     * @return mixed
     */
    public function uploadFileByFromFile ($file, $file_path, $allow_type = ['jpg', 'png', 'jpeg'], $max_size = 1048576);
}